package com.muyan.design.singleton;

public class SingletonBest {

    private SingletonBest() {
    }

    private static class SingletonFatory {
        private static SingletonBest instance = new SingletonBest();
    }

    public SingletonBest getInstance() {
        return SingletonFatory.instance;
    }

    public Object readResolve() {
        return getInstance();
    }
}
